const Koa = require('koa')
const routes = require('./routes') // 路由引入
const middlewares = require('./middlewares') // 中间件引入
const app = new Koa()
console.log('--------环境变量-------')
console.log(process.env.KOA_ENV)

/* 中间件初始化 */
middlewares(app)

/* 路由初始化 */
routes(app)

app.listen(8022)